package com.ddd.infrastructure.common.event;

import org.springframework.stereotype.Component;

/**
 * DomainEventPublisher, the Event is sent to EventBus
 *
 * Normally DomainEvent should be sent to Messaging Middleware
 *
 * @author guowm
 */
@Component
public class DomainEventPublisher {

    public void publish(Object domainEvent) {
        // TODO send to eventBus
        //eventBus.fire(domainEvent);
    }
}